Skip to main content

Quickstart

TPN is a decentralised VPN infrastructure provider. You can call the decentralised TPN endpoints to receive Wireguard config files that connect to a specific country for a given duration.

In these documentation you will learn how to call our endoints, and what to do with the config files you receive.

  1. Authentication
  2. List available countries
  3. Get a config file
  4. Make a VPN connection

Tools and libraries

Cheatsheet

Please refer to the documentation in the sidebar for detailed information. For quick reference, you can use the example script below for inspiration.

#!/bin/bash

# View the available country codes
curl "http://185.189.44.166:3000/api/config/countries"

# Get a config file for any country for half a minute and save it to tpn_config.conf
curl "http://185.189.44.166:3000/api/config/new?format=text&geo=any&lease_minutes=.5" > tpn_config.conf

# Log out your IP address before connecting
curl icanhazip.com

# Connect to the VPN (requires sudo and WireGuard tools)
sudo wg-quick up ./tpn_config.conf

# Log out your IP address after connecting
curl icanhazip.com

# Disconnect the VPN
sudo wg-quick down ./tpn_config.conf